package com.amigo.online.provider.merchant.service;

import com.amigo.online.common.param.result.merchant.MerchantCacheInfo;

public interface CommonCheckService {


    /**
     * @throws
     * @Title: checkUserIsManager
     * @Description: (校验操作人是否是店铺管理员)
     * @param: @param userId
     * @param: @param merchantId
     * @return: void
     */
    void checkUserIsManager(long userId, long merchantId);

    /**
     * @throws
     * @Title: checkMerchantIfExist
     * @Description: (校验商家是否存在 ， 以及是否是正常状态)
     * @param: @param merchantId
     * @param: @return
     * @return: void
     */
    void checkMerchantIfExist(Long merchantId);

    /**
     * @throws
     * @Title: checkGoodsIsMerchantGoods
     * @Description: (校验商品是否是本店铺商品)
     * @param: @param goodsId
     * @param: @param merchantId
     * @return: void
     */
    void checkGoodsIsMerchantGoods(long goodsId, long merchantId);

}
